package com.liuwei.spring.cloud.biz.repository.db.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.liuwei.spring.cloud.framework.db.entity.BaseOptimisticLockerDeleteVersionEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author : LiFeignChain
 * @version V1.0
 * @date: 2024/5/6 10:31 AM
 * @Description: TODO
 */
@Data
@TableName("li_feign_chain")
@Schema(description = "用户基础数据")
public class LiFeignChain extends BaseOptimisticLockerDeleteVersionEntity {

    /**
     CREATE TABLE `li_feign_chain` (
     `id` varchar(64) NOT NULL COMMENT '自增主键',
     `env` varchar(64) NOT NULL COMMENT '运行环境',
     `cluster` varchar(64) NOT NULL COMMENT '运行集群',
     `provider` varchar(64) NOT NULL COMMENT '提供方',
     `consumer` varchar(64) NOT NULL COMMENT '消费方',
     `consumer_ip` varchar(64) DEFAULT NULL COMMENT 'ip',
     `tid` varchar(64) DEFAULT NULL COMMENT  'tid',
     `time` varchar(64) DEFAULT NULL COMMENT '时间',
     `uri` varchar(512) DEFAULT NULL COMMENT  'uri',
     `clazz` varchar(128) DEFAULT 'NULL' COMMENT '类名',
     `method` varchar(64) DEFAULT NULL COMMENT '方法',
     `remark` varchar(128) DEFAULT NULL COMMENT '备注信息',
     `version` int(11) NOT NULL DEFAULT '0' COMMENT '乐观锁版本号',
     `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '逻辑删除',
     `deleted_version` varchar(32) NOT NULL DEFAULT '0' COMMENT '删除版本',
     `create_by_id` varchar(64) DEFAULT NULL COMMENT '创建人',
     `create_by_name` varchar(64) DEFAULT NULL COMMENT '创建人',
     `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
     `update_by_id` varchar(64) DEFAULT NULL COMMENT '修改人',
     `update_by_name` varchar(64) DEFAULT NULL COMMENT '修改人',
     `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
     PRIMARY KEY (`id`)
     ) COMMENT = 'Feign 接口调用链';
     */

    private String env;
    private String cluster;
    private String provider;
    private String consumer;
    private String consumerIp;
    private String tid;
    private String time;
    private String uri;
    private String clazz;
    private String method;
    private String remark;
}
